package com.ibeeking.found.common.enums.cs;


/**
 * 客服台客诉工单来源
 */
public enum CustomerSupportOrderFromEnum {


    SCENE(1, "现场投诉"),
    WECHAT_SUPPORT(2,"微信投诉"),
    PHONE(3, "电话投诉"),
    WECHAT_CUSTOMER(4,"微信小程序客户自诉"),;


    private Integer code;

    private String name;

    public Integer getCode(){
        return this.code;
    }

    public String getName(){
        return this.name;
    }


    CustomerSupportOrderFromEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static CustomerSupportOrderFromEnum getEnum(Integer code){
        for (CustomerSupportOrderFromEnum enums : values()){
            if(enums.code.equals(code)){
                return enums;
            }
        }
        return null;
    }

}
